{include file='header'/}
<title>添加内容</title>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <form class="layui-form layuimini-form" action="javascript:" onsubmit="return dosub(this)" onkeydown="if(event.keyCode==13){return false;}" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label required">标题</label>
                <div class="layui-input-block">
                    <label for="title">
                        <input type="text" id="title" name="title" value="" lay-verify="required" autocomplete="off" class="layui-input" lay-reqtext="标题不能为空">
                    </label>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">主管部门</label>
                <div class="layui-input-block">
                    <label for="department">
                        <input type="text" id="department" name="department" value="" autocomplete="off" class="layui-input">
                    </label>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">部门联系人</label>
                <div class="layui-input-block">
                    <label for="contact">
                        <input type="text" id="contact" name="contact" value="" autocomplete="off" class="layui-input">
                    </label>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">联系人号码</label>
                <div class="layui-input-block">
                    <label for="phone">
                        <input type="text" id="phone" name="phone" value="" autocomplete="off" class="layui-input">
                    </label>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">联系地址</label>
                <div class="layui-input-block">
                    <label for="address">
                        <input type="text" id="address" name="address" value="" autocomplete="off" class="layui-input">
                    </label>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">权重</label>
                <div class="layui-input-block">
                    <label for="sorts">
                        <input type="text" id="sorts" name="sorts" value="" autocomplete="off" class="layui-input" lay-reqtext="排序">
                    </label>
                    <tip>越小排序越靠前</tip>
                </div>
            </div>
            <div class="layui-form-item layui-hide">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-block">
                    <input type="hidden" name="status" value="1">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-sm" onclick="set_status(1)">立即提交
                    </button>
                    <button class="layui-btn layui-btn-normal layui-btn-sm" onclick="set_status(0)"> 保存草稿
                    </button>
                    <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{include file='footer'/}
<script>
  layui.use(['form', 'jquery'], function () {
    let form = layui.form, $ = layui.jquery;
    form.render();
    window.dosub = function (obj) {
      HuiDoSub($(obj).serialize(), "{:__url('content.ServicePhone/add')}");
    }
  })
  ;
</script>

</body>
</html>
